package com.xygz.orm.internal.query;

import com.xygz.orm.enums.SQLKeywords;

/**
 * Condition 条件关键字
 *
 * @author xiyuan-lgz 2024-05-21 @version v1.0.0 新建与整理
 */
public enum Ops {
    /**
     * is null
     */
    IS_NULL(SQLKeywords.IS_NULL),
    /**
     * is not null
     */
    IS_NOT_NULL(SQLKeywords.IS_NOT_NULL),
    
    /**
     * =
     */
    EQ(SQLKeywords.EQ),
    
    /**
     * '<>'
     */
    NE(SQLKeywords.NE),
    
    /**
     * in
     */
    IN(SQLKeywords.IN),
    
    /**
     * not in
     */
    NOT_IN(SQLKeywords.NOT_IN),
    
    /**
     * between
     */
    BETWEEN(SQLKeywords.BETWEEN),
    
    /**
     * not between
     */
    NOT_BETWEEN(SQLKeywords.NOT_BETWEEN),
    
    /**
     * '>'
     */
    GT(SQLKeywords.GT),
    /**
     * '>='
     */
    GTE(SQLKeywords.GE),
    
    /**
     * ‘<=’
     */
    LTE(SQLKeywords.LE),
    
    /**
     * '<'
     */
    LT(SQLKeywords.LT),
    /**
     * 'like '
     */
    LIKE(SQLKeywords.LIKE),
    
    
    //
    ;
    private final SQLKeywords keywords;
    
    Ops(SQLKeywords keywords) {
        this.keywords = keywords;
    }
    
    public SQLKeywords getKeywords() {
        return this.keywords;
    }
}
